home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / eu1_00.zip / UC.MAN < prev    next >
Text File  |  1980-01-01  |  4KB  |  99 lines

  1.  
  2.         Eldar Utilities Ver.1.00
  3.  
  4.            Universal  Call
  5.             and
  6.             Type Emulator
  7.  
  8.         (C) Eldar Software, 1991
  9.  
  10.     The UC (Universal Call) utility allow you to call programs
  11. with imitation of keyboard input. UC has two parameters:
  12.  
  13.     - full name of program to be executed;
  14.     - string to be emulated for this program as a keyboard input.
  15.  
  16.     You can insert in this string blanks as much as possible to
  17. fit into a command line. You can also use control codes in form
  18. ^<Capital letter>, e.g. LF is ^J, CR is ^M, NUL is ^@, ESC is ^[.
  19. To place in string symbol '^' type it twice.
  20.  
  21.     Suppose, you want to use Turbo Pascal Ver.3.0 as a text 
  22. editor. It is suitable, small, sufficiently effective, has very
  23. quick initialization. The problem is thatit takes file name only
  24. interactively from the keyboard. Suppose it is placed in directory
  25. \link\ on drive c:, then make the one-line batch file tpe.bat:
  26.  
  27.     uc c:\link\turbo.com NE%1^M
  28.  
  29. After that use the command:
  30.  
  31.     tpe file-name
  32.  
  33. to edit file. First letter in string ('N') is a reply for the Turbo 
  34. Pascal request 'Load error messages ?(Y/N)', next letter ('E')
  35. is a command to edit file, after that the choosen file name (%1)
  36. is placed and will be entered on the request 'Work file:', and after
  37. that the key 'Return' (^M) is emulated.
  38.  
  39.     Note that UC requires FULL name of program except the cases
  40. when it is used from the same directory as the directory where the
  41. program to call is placed. In another words it does not feel PATH=
  42. string in environment. It is done in this way to avoid accidental
  43. mixions of files, which can lead to system hang-ups, and because
  44. UC is mostly used in batch files, where PATH-sensitive loading
  45. is not needed. 
  46.     The extension of file name is also necessary.
  47.  
  48.     Sometimes it is needed to have a long input string, which
  49. cannot fit into a command line, or to avoid specification of
  50. file name extension of full path. In such cases use TE (Type Emulator)
  51. utility. It calls command processor and emulate the input from
  52. the file name specified by the first parameter. Such approach differs
  53. from ordinary batch file or from the redirection of command.com
  54. input by the fact, that input is emulated not only for the command
  55. processor, but also for any program it calls. For example, if you
  56. use uucp communication in one place, but prepare messages on another
  57. computer. Standard dialog to send a message in uupc in MS-DOS if
  58. you have a message in file is the next (your answers by capital letters):
  59.  
  60.     c:\mailbox\yourname\>MAIL EMAIL-ADDRESS
  61.     Subject:TEXT-OF-SUBJECT
  62.     ~R FILE-NAME
  63.     file-name: xxxx bytes/xxx lines are read.
  64.     .
  65.     Abort, Continue, Edit or Send ? S
  66.     cc:
  67.  
  68. So your answers should be placed in the next order:
  69.  
  70.     mail EMAIL-ADDRESS<RETURN>
  71.     TEXT-OF-SUBJECT<RETURN>
  72.     ~r FILE-NAME<RETURN>
  73.     .<RETURN>
  74.     s<RETURN>
  75.     <RETURN>
  76.  
  77. So you can prepare file typein.txt where this text is repeated
  78. for every letter and finished by command 'exit<RETURN>' to leave
  79. secondary command processor. Note that here you don't needed to
  80. specify file name extension, and you can use path= directories
  81. as default.
  82.  
  83. Control codes are also descripted as ^<Capital-letter> as for UC,
  84. but here you can insert them in file directly. The special case
  85. is the sequence <CR><LF> which are present in the file in the end
  86. of every line. <LF> in this case is omitted so if you really want
  87. to have this sequence of values specify <LF> as ^J, e.g.
  88.  
  89.     ... 
  90.     ^J ...
  91.  
  92.     or
  93.  
  94.     ... ^M^J ...
  95.  
  96. Note that it is necessary to place command exit in the end of your
  97. file to exit from the secondary command processor, invoked by TE.
  98.  
  99.